//
//  User.h
//  QSBK
//
//  Created by Eric Wang on 4/20/15.
//  Copyright (c) 2015 Eric Wang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface User : NSObject<NSCoding>


-(id)initWithCoder:(NSCoder *)aDecoder;
-(void)encodeWithCoder:(NSCoder *)aCoder;
//上次访问地址
@property(nonatomic,strong)NSString *last_visited_at;
//发表地址
//@property(nonatomic,strong)NSString *created_at;
//用户状态
@property(nonatomic,copy)NSString *stater;
//上一次使用设备
@property(nonatomic,copy)NSString *last_device;
//角色
@property(nonatomic,copy)NSString *role;
//用户名
@property(nonatomic,copy)NSString *login;
//用户ID
@property(nonatomic,strong)NSNumber *user_id;
//用户图标
@property(nonatomic,copy)NSString *icon;
@property(nonatomic,copy)NSString *token;

//email
@property(nonatomic,copy)NSString *email;
//sex
@property(nonatomic,strong)NSNumber *sex;
//
@property(nonatomic,strong)NSNumber *longitude;
@property(nonatomic,strong)NSNumber *latitude;
@property(nonatomic,strong)NSNumber *articleTotal;
//
@property(nonatomic,strong)NSString *bigImage;
//

-(void)setToken:(NSString *)token;
//
-(void)setLast_device:(NSString *)last_device;
-(void)setLast_visited_at:(NSString *)last_visited_at;
-(void)setStater:(NSString *)stater;
-(void)setCreated_at:(NSString *)created_at;
-(void)setRole:(NSString *)role;
-(void)setLogin:(NSString *)login;
-(void)setUser_id:(NSNumber *)user_id;
-(void)setIcon:(NSString *)icon;
-(void)setEmail:(NSString *)email;
-(void)setLongitude:(NSNumber *)longitude;
-(void)setLatitude:(NSNumber *)latitude;
-(void)setArticleTotal:(NSNumber *)articleTotal;
-(void)setSex:(NSNumber *)sex;
-(void)setBigImage:(NSString *)bigImage;
@end
